package net.maku.member.vo;

import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import io.swagger.v3.oas.annotations.media.Schema;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import net.maku.framework.common.utils.DateUtils;
import net.maku.system.entity.SysOrgEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
* 会员信息
*
* @author 阿沐 babamu@126.com
* @since 1.0.0 2025-03-15
*/
@Data
@Schema(description = "会员信息")
public class MemberUserVO implements Serializable, TransPojo {
	private static final long serialVersionUID = 1L;

	@Schema(description = "id")
	private Long id;

	@Schema(description = "工会ID")
	@Trans(type = TransType.SIMPLE, target = SysOrgEntity.class, fields = "name", ref = "orgName")
	private Long orgId;

	@Schema(description = "工会名称")
	private String orgName;

	@Schema(description = "所在部门")
	private Long deptId;

	@Schema(description = "头像")
	private String avatar;

	@Schema(description = "姓名")
	private String realName;

	@Schema(description = "性别   0：男   1：女   2：未知")
	private Integer gender;

	@Schema(description = "手机号")
	private String mobile;

	@Schema(description = "民族")
	private Integer nation;

	@Schema(description = "出生年月")
	@DateTimeFormat(pattern = DateUtils.DATE_PATTERN)
	@JsonFormat(pattern = DateUtils.DATE_PATTERN)
	private Date birthday;

	@Schema(description = "政治面貌")
	private Integer politicalStatus;

	@Schema(description = "学历")
	private Integer educationalBackground;

	@Schema(description = "工会职务")
	private Integer tradeUnionOffice;

	@Schema(description = "职称等级")
	private Integer professionalGrade;

	@Schema(description = "职称名称")
	private String professionalName;

	@Schema(description = "文体特长")
	private String stylisticSpecialty;

	@Schema(description = "密码")
	private String password;

	@Schema(description = "积分")
	private Double points;

	@Schema(description = "状态  0：停用   1：正常")
	private Integer status;

	@Schema(description = "会员标签")
	private List<Long> memberTags;

	@Schema(description = "会员标签名称")
	private List<MemberTagVO> memberTagVOList;

	@Schema(description = "租户ID")
	private Long tenantId;

	@Schema(description = "版本号")
	private Integer version;

	@Schema(description = "删除标识  0：正常   1：已删除")
	private Integer deleted;

	@Schema(description = "创建者")
	private Long creator;

	@Schema(description = "创建时间")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date createTime;

	@Schema(description = "更新者")
	private Long updater;

	@Schema(description = "更新时间")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date updateTime;

	@Schema(description = "学历信息")
	private List<MemberEducationalBackgroundVO> memberEducationalBackgroundVOList;

}